@@ -135,9 +135,15 @@ <h2 class="sumo-callout-heading summary {% if product %}no-product-heading{% end
135
135
136
136
{% if question.is_spam %}
137
137
< p class ="is-spam ">
138
- {% trans marked_by=question.marked_as_spam_by, marked_time=question.marked_as_spam %}
139
- Marked as spam by {{ marked_by }} at {{ marked_time }}
140
- {% endtrans %}
138
+ {% if question.marked_as_spam_by %}
139
+ {% trans marked_by=question.marked_as_spam_by, marked_time=question.marked_as_spam %}
140
+ Marked as spam by {{ marked_by }} at {{ marked_time }}
141
+ {% endtrans %}
142
+ {% else %}
143
+ {% trans marked_time=question.marked_as_spam %}
144
+ Marked as spam at {{ marked_time }}
145
+ {% endtrans %}
146
+ {% endif %}
141
147
</ p >
142
148
{% endif %}
143
149
</ div >
@@ -395,14 +401,14 @@ <h3 class="sumo-card-heading">{{ _('Post a Reply') }}</h3>
395
401
{% if can_tag %}
396
402
{% if tag_adding_error %}
397
403
< p class ="tag-error-message "> {{ tag_adding_error }}</ p >
398
- {% endif %}
404
+ {% endif %}
399
405
< form id ="tag-adder-form-{{ question.id }} ">
400
406
< div class ="field ">
401
407
< select id ="tag-select-{{ question.id }} " name ="tags " multiple class ="tag-select "
402
408
data-add-url ="{{ url('questions.add_tag_async', question.id) }} "
403
409
data-remove-url ="{{ url('questions.remove_tag_async', question.id) }} ">
404
410
{% for tag in all_tags %}
405
- < option value ="{{ tag.id }} "
411
+ < option value ="{{ tag.id }} "
406
412
data-url ="{{ url('questions.list', product.slug if product else 'all')|urlparams(tagged=tag.slug) }} "
407
413
{% if tag in question.tags.all() %}selected{% endif %} >
408
414
{{ tag.name }}
0 commit comments